Skip to content

Conversation

@koppor
Copy link
Collaborator

@koppor koppor commented Sep 30, 2025

Follow-up to #47

  • Switch from Groovy to Kotlin
  • Use Gradle-X modules

@Siedlerchr
Copy link
Owner

copy over the resource dir https://github.com/JabRef/jabref/tree/main/jabgui/buildres/macos

@Siedlerchr
Copy link
Owner

java.nio.file.NoSuchFileException: jabref.icns

@koppor koppor changed the title Switch to Kotlin and GradleX Reproduce error: .icns file reported as missing Sep 30, 2025
@koppor
Copy link
Collaborator Author

koppor commented Sep 30, 2025

 file or directory '/Users/runner/work/javafxreproducer/javafxreproducer/src/main/resourcesPackage/macos', not found
Starting process 'command '/Users/runner/hostedtoolcache/Java_Corretto_jdk/25.0.0-36.2/arm64/Contents/Home/bin/jpackage''. Working directory: /Users/runner/work/javafxreproducer/javafxreproducer Command: /Users/runner/hostedtoolcache/Java_Corretto_jdk/25.0.0-36.2/arm64/Contents/Home/bin/jpackage --type app-image --dest /Users/runner/work/javafxreproducer/javafxreproducer/build/packages/macos-14 --module javafx.reproducer --resource-dir /Users/runner/work/javafxreproducer/javafxreproducer/build/tmp/jpackage/macos-14/jpackage-resources --app-version 1.0.0 --module-path /Users/runner/work/javafxreproducer/javafxreproducer/build/libs/javafx-reproducer-1.0.0.jar:/Users/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-fxml/25/78760f6eef8edd81000536ee6945bef4b29adee7/javafx-fxml-25-mac-aarch64.jar:/Users/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-controls/25/a5528f381b061cb83dda75e019da3c8c4d4dc5a1/javafx-controls-25-mac-aarch64.jar:/Users/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/25/1914f76d206a4cdb19311445e5aff18ea9c091a/javafx-graphics-25-mac-aarch64.jar:/Users/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/25/ce7b7a51e705639cc62a32e464114d6c06e1df0e/javafx-base-25-mac-aarch64.jar --name javafx-reproducer --vendor JabRef --jlink-options --strip-debug --jlink-options --compress --jlink-options 2 --jlink-options --no-header-files --jlink-options --no-man-pages
Successfully started process 'command '/Users/runner/hostedtoolcache/Java_Corretto_jdk/25.0.0-36.2/arm64/Contents/Home/bin/jpackage''
Starting process 'command '/Users/runner/hostedtoolcache/Java_Corretto_jdk/25.0.0-36.2/arm64/Contents/Home/bin/jpackage''. Working directory: /Users/runner/work/javafxreproducer/javafxreproducer Command: /Users/runner/hostedtoolcache/Java_Corretto_jdk/25.0.0-36.2/arm64/Contents/Home/bin/jpackage --type dmg --app-version 1.0.0 --dest /Users/runner/work/javafxreproducer/javafxreproducer/build/packages/macos-14 --module javafx.reproducer --resource-dir /Users/runner/work/javafxreproducer/javafxreproducer/build/tmp/jpackage/macos-14/jpackage-resources --app-version 1.0.0 --module-path /Users/runner/work/javafxreproducer/javafxreproducer/build/libs/javafx-reproducer-1.0.0.jar:/Users/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-fxml/25/78760f6eef8edd81000536ee6945bef4b29adee7/javafx-fxml-25-mac-aarch64.jar:/Users/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-controls/25/a5528f381b061cb83dda75e019da3c8c4d4dc5a1/javafx-controls-25-mac-aarch64.jar:/Users/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-graphics/25/1914f76d206a4cdb19311445e5aff18ea9c091a/javafx-graphics-25-mac-aarch64.jar:/Users/runner/.gradle/caches/modules-2/files-2.1/org.openjfx/javafx-base/25/ce7b7a51e705639cc62a32e464114d6c06e1df0e/javafx-base-25-mac-aarch64.jar --name javafx-reproducer --vendor JabRef --jlink-options --strip-debug --jlink-options --compress --jlink-options 2 --jlink-options --no-header-files --jlink-options --no-man-pages --app-content /Users/runner/work/javafxreproducer/javafxreproducer/build/tmp/jpackage/macos-14/app-content/Resources --mac-package-identifier JabRef --mac-package-name JabRef --file-associations /Users/runner/work/javafxreproducer/javafxreproducer/buildres/macos/bibtexAssociations.properties
Successfully started process 'command '/Users/runner/hostedtoolcache/Java_Corretto_jdk/25.0.0-36.2/arm64/Contents/Home/bin/jpackage''
Warning: The 2 argument for --compress is deprecated and may be removed in a future release
java.nio.file.NoSuchFileException: jabref.icns

@Siedlerchr
Copy link
Owner

Siedlerchr commented Sep 30, 2025

first line in jpackage
Task ':jpackageMacos-14' is not up-to-date because:
No history is available.
file or directory '/Users/runner/work/javafxreproducer/javafxreproducer/src/main/resourcesPackage/macos', not found

@koppor
Copy link
Collaborator Author

koppor commented Sep 30, 2025

file or directory '/Users/runner/work/javafxreproducer/javafxreproducer/src/main/resourcesPackage/macos', not found

I did not find this in the the JDK25 PR of JabRef - not sure if this is missing directory is really related - it is IMHO "just" the default directory.

@koppor
Copy link
Collaborator Author

koppor commented Sep 30, 2025

grafik

@koppor
Copy link
Collaborator Author

koppor commented Sep 30, 2025

Copying to Resources does not solve the issue.

@koppor
Copy link
Collaborator Author

koppor commented Sep 30, 2025

It's the file linked from bibtexAssociations.properties

"Debugged" with changing the name:

icon=jabref-from-properties.icns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants